import request from '@/utils/request'

export function register (data) {
  return request({
    method: 'post',
    url: '/h5/user/register',
    data
  })
}

export function login (data) {
  return request({
    method: 'post',
    url: '/h5/user/login',
    data
  })
}

export function getUserInfo (data) {
  return request({
    method: 'get',
    url: '/h5/user/currentUser',
    data
  })
}
